/**********************************************************************
 *   Copyright: (C)2024 LingYun IoT System Studio
 *      Author: LiJiahui<2199250859@qq.com>
 *
 * Description: The purpose of this code is to provide a simple C library,
 *              which providing software bit-bang of the I2C protocol on
 *              any GPIO pins for ISKBoard.
 *
 *   ChangeLog:
 *        Version    Date       Author            Description
 *        V1.0.0  2025.07.19    LiJiahui      Release initial version
 *
 ***********************************************************************/

#ifndef INC_OLED_H_
#define INC_OLED_H_


#include "font_oled.h"
#include "i2c_bitbang.h"

#define OLED_I2CBUS		I2CBUS0
#define OLED_CHIPADDR	0x3C

#define X_WIDTH 		128  //列宽
#define Y_WIDTH 		64   //行宽

#define OLED_FONT16     16
#define OLED_FONT8      8

void OLED_Init(void);
void OLED_On(void);
void OLED_Clear(void);
void OLED_Display_On(void);
void OLED_Display_Off(void);

void OLED_Set_Pos(uint8_t x, uint8_t y);
void OLED_ShowNum(uint8_t x,uint8_t y,uint32_t num,uint8_t len,uint8_t size);
void OLED_ShowString(uint8_t x,uint8_t y, char *p,uint8_t font_size);
void OLED_ShowChinese(const uint8_t (*Hzk)[32], uint8_t x, uint8_t y, uint8_t no);


#endif
